package ch.sfug.data {

	/**
	 * @author loop
	 */
	public class LinkedListItem {

		private var n:Object;
		private var p:Object;

		public function LinkedListItem( next:Object = null, previous:Object = null ) {
			this.next = next;
			this.previous = previous;
		}

		
		/**
		 * gets the next element in the linked list
		 */
		public function get next(  ):Object {
			return this.n;
		}

		
		/**
		 * sets the next element in the linked list
		 */
		public function set next( n:Object ):void {
			this.n = n;
		}

		
		/**
		 * gets the previous element in the linked list
		 */
		public function get previous(  ):Object {
			return this.p;
		}

		
		/**
		 * sets the previous element in the linked list
		 */
		public function set previous( p:Object ):void {
			this.p = p;
		}
	}
}
